import {get,post} from "./http";

export const getLoginStatus = (params) => post(`admin/login/status`,params);

export const getRegisterStatus = (params) => post(`/admin/register/status`,params);

export const vervifyCode = () => get(`/admin/verifyCode/status`);


// =======================歌手相关========================
// 查询所有歌手
export const getAllSinger = () => get(`singer/allSinger`);
// 添加歌手
export const setSinger = (params) => post(`singer/add`,params);
// 修改歌手
export const updateSinger = (params) => post(`singer/update`,params);
// 删除歌手
export const delSinger = (id) => get(`singer/delete?id=${id}`);

// ======================歌曲相关==========================
// 根据歌手Id 查询
export const singerOfSingerId = (id) => get(`song/singer/detail?singerId=${id}`);
// 保存歌曲
export const updateSong = (params) => post(`song/update`,params);
// 删除歌曲
export const delSong = (id) => get(`song/delete?id=${id}`);
// 根据歌曲名获取歌曲对象
export const songOfSongNmae=(songName)=> get(`song/songOfSongNmae?songName=${songName}`);
// 查询所有歌曲
export const allSong =()=> get(`song/allSong`);


// ======================歌单相关==========================
// 查询所有歌单
export const getAllSongList = () => get(`songList/allSongList`);
// 添加歌单
export const setSongList = (params) => post(`songList/add`,params);
// 修改歌单
export const updateSongList = (params) => post(`songList/update`,params);
// 删除歌单
export const delSongList = (id) => get(`songList/delete?id=${id}`);

// =======================用户相关========================
// 查询所有歌手
export const getAllConsumer = () => get(`consumer/allConsumer`);
// 添加歌手
export const setConsumer = (params) => post(`consumer/add`,params);
// 修改歌手
export const updateConsumer = (params) => post(`consumer/update`,params);
// 删除歌手
export const delConsumer = (id) => get(`consumer/delete?id=${id}`);